<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>会员修改头像 - ${site.name}</title>
[#include "../include/member_script.html"/]
<script src="${base}/thirdparty/avatar/avatar.js" type="text/javascript"></script>
</head>

<body>
[#if uploadSuccess]
<div>上传成功！</div>
<script type="text/javascript">
window.parent.hideLoading();
window.parent.buildAvatarEditor("${fileId}","${filename}","photo");
</script>
[#else]
<div>上传失败！</div>
<script type="text/javascript">
window.parent.hideLoading();
window.parent.avatarError("对不起, 图片未上传成功, 请再试一下");
</script>
[/#if]
</body>